package com.demo.provider;

import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Value;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.websocket.server.PathParam;

/**
 * dubbo服务提供实现类
 */
@DubboService(protocol = "dubbo,rest")
public class DubboProvider implements IDubboProvider{

    @Value("${spring.application.name}")
    private String appName;


    @GET
    @Path("/getAppName")
    @Override
    public String getAppName() {
        return appName;
    }
}
